<template>
  <div class="detailBox">
    <h2 class="title"><i></i> {{ detail && detail.name }}简介</h2>
    <p>{{ detail && detail.briefDesc }}</p>
    <div v-for="(item, index) in detail && detail.introduction" :key="index">
      <h2 class="title"><i></i> {{ item.ti }}</h2>
      <p>{{ item.txt }}</p>
    </div>
  </div>
</template>

<script>
import { singerDetail } from "@/api";
export default {
  data() {
    return {
      detail: undefined,
    };
  },
  created() {
    this.getSingerDetail();
  },
  methods: {
    getSingerDetail() {
      singerDetail({ id: this.$route.query.id }).then((res) => {
        this.detail = res;
      });
    },
  },
};
</script>

<style lang="scss" scoped>
.detailBox {
  P {
    line-height: 25px;
    color: #666;
    text-indent: 2em;
  }
  .title {
    margin: 28px 0 8px 0;
    color: #333;
    font-size: 14px;
    i {
      height: 16px;
      width: 4px;
      margin-right: 7px;
      background: #c10d0c;
      display: inline-block;
      vertical-align: middle;
    }
  }
}
</style>